package com.shangguigu.linkedlist;

import lombok.Getter;
import lombok.Setter;

/**
 * @author: ZhouBert
 * @date: 2019/10/1
 * @description:	水浒英雄（节点）
 */
@Getter
@Setter
public class HeroNode {

	private int no;
	private String name;
	private String nickname;
	private HeroNode node;

	/**
	 * constructor
	 * @param no
	 * @param name
	 * @param nickname
	 */
	public HeroNode(int no, String name, String nickname) {
		this.no = no;
		this.name = name;
		this.nickname = nickname;
	}

	@Override
	public String toString() {
		return "HeroNode{" +
				"no=" + no +
				", name='" + name + '\'' +
				", nickname='" + nickname + '\'' +
				'}';
	}
}
